package com.fruit.auth.dao;

import java.io.Serializable;
import java.util.List;

import com.fruit.auth.model.Role;
import com.fruit.auth.model.User;
import com.fruit.auth.model.UserRole;
import com.fruit.dao.BaseDao;

public interface UserRoleDao extends BaseDao<UserRole>
{
	public void saveUserRole(UserRole userRole);
	public void saveUserRoles(final User user,final List<Serializable> roleIds);
	public UserRole findUserRole(User user,Role role);
	public List<Role> findUserRoles(User user);
	public List<Serializable> findUserRoleIds(User user);
	public void updateUserRoles(User user,List<Serializable> roleIds);
	public void unAuthRoleUsers(Role role);
	public void unAuthRolesUsers(String roleIdsStr);
	public void unAuthUserRoles(User user);
	public void unAuthUsersRoles(String userIdsStr);
}
